import {commGet, commPost} from "@utils/service/index.js";

export function getTruckDeliverList(data) {
    return commGet({
        url: `/api/wms/truck/order/list`,
        method: 'get',
        data
    })
}

export function cancelOrder(data) {
    return commPost({
        url: `/api/wms/truck/order/cancel`,
        method: 'post',
        data
    })
}

export function batchBookingStrategyList(data) {
    return commGet({
        url: `/api/wms/truck/order/batchBookingStrategyList`,
        method: 'get',
        data
    })
}
export function batchBooking(data) {
    return commPost({
        url: `/api/wms/truck/order/batchBooking`,
        method: 'post',
        data
    })
}
export function createByPendingOrderLoop(data) {
    return commGet({
        url: `/api/wms/truck/order/createByPendingOrder/loop`,
        method: 'get',
        data
    })
}

export function createByPendingOrder(data) {
    return commPost({
        url: `/api/wms/truck/order/createByPendingOrder`,
        method: 'post',
        data
    })
}
export function getBatchBookingStatus(data) {
    return commPost({
        url: `/api/wms/truck/order/batchBooking/status`,
        method: 'get',
        data
    })
}

export function isReturnTruckStatus(data) {
    return commPost({
        url: `/api/wms/truck/is_return_truck_status`,
        method: 'post',
        data
    })
}

export function returnTruckStatus(data) {
    return commPost({
        url: `/api/wms/truck/return_truck_status`,
        method: 'post',
        data
    })
}
